﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 标准用语字典
    /// </summary>
    public class StdPhrDict : AuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 用语代码
        /// </summary>
        public string PhrCode { get; set; }

        /// <summary>
        /// 用语名称
        /// </summary>
        public string PhrName { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Exp { get; set; }

        /// <summary>
        /// 域字典
        /// </summary>
        public Guid StdDomainDictId { get; set; }

        /// <summary>
        /// 域字典
        /// </summary>
        public StdDomainDict StdDomainDict { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public StdPhrDict()
        { 
        
        }

        public StdPhrDict(string phrCode, string phrName, Guid stdDomainDictId, string exp = "")
        {
            PhrCode = phrCode;
            PhrName = phrName;
            StdDomainDictId = stdDomainDictId;
            Exp = exp;
        }
    }
}
